package com.piggy.logi.sys.service;


import com.piggy.logi.sys.domain.LogiPickupWaybill;
import com.piggy.logi.sys.vo.LogiPickupWaybillVo;
import com.piggy.logi.sys.bo.LogiPickupWaybillQueryBo;
import com.piggy.logi.sys.bo.LogiPickupWaybillEditBo;
import com.piggy.common.core.web.page.IServicePlus;

import com.piggy.common.core.web.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 提货单运单关联关系Service接口
 *
 * @author piggy
 * @date 2023-08-25
 */
public interface ILogiPickupWaybillService extends IServicePlus<LogiPickupWaybill> {
    /**
     * 查询单个
     *
     * @return
     */
    LogiPickupWaybillVo queryById(Long id);

    /**
     * 查询列表
     */
    TableDataInfo<LogiPickupWaybillVo> queryPageList(LogiPickupWaybillQueryBo bo);

    /**
     * 查询列表
     */
    List<LogiPickupWaybillVo> queryList(LogiPickupWaybillQueryBo bo);

    /**
     * 根据新增业务对象插入提货单运单关联关系
     *
     * @param bo 提货单运单关联关系新增业务对象
     * @return
     */
    LogiPickupWaybillVo insertByAddBo(LogiPickupWaybillEditBo bo);

    /**
     * 根据编辑业务对象修改提货单运单关联关系
     *
     * @param bo 提货单运单关联关系编辑业务对象
     * @return
     */
    LogiPickupWaybillVo updateByEditBo(LogiPickupWaybillEditBo bo);

    /**
     * 校验并删除数据
     *
     * @param ids     主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
